import { useRoutes, Link } from 'react-router-dom'
import routes from './router'
import './App.css'
import { Suspense } from 'react'
import Header from './components/header'
import Footer from './components/footer'
// import Download from '@/views/download'
import PlayerBar from '@/views/player/c-pages/player-bar'

function App() {
  return (
    <div className="App">
      <Header/>
      <div className="container">
        <Suspense fallback="加载中...">
          <div>{useRoutes(routes)}</div>
        </Suspense>
      </div>
      <Footer/>
      <PlayerBar/>
    </div>
  )
}

export default App
